﻿
@{
   DataHelper.SEO seo = ViewBag.SEO;
    ViewBag.Title = "Home Page";
    Lang lang = ViewBag.Lang;
    string strMenu = "";
    if (lang.iLang == 1)
    {
        strMenu = "/Content/Images/Site/menu-vi.swf?button=1";
    }
    if (lang.iLang == 2)
    {
        strMenu = "/Content/Images/Site/menu-en.swf?button=1";
    }
}
@*@Html.Partial("Partials/_LoginPartial")*@
@*<div id="menu">
    <div id="lang" style="position: absolute; right: 0; top: 10px">
        @if (lang.iLang == 1)
        {
            <a href="?lang=2">
                <img width="27px" height="17px" src="/Content/Images/Site/en.jpg" class="left" />
                <span class="left" style="padding-top: 2px; padding-left: 2px;">English</span>
            </a>
        }
        else
        { 
            <a href="?lang=1">
                <img width="27px" height="17px" src="/Content/Images/Site/vi.jpg" class="left" />
                <span class="left" style="padding-top: 2px; padding-left: 2px;">Tiếng việt</span>
            </a>
        }
        
    </div>
    
</div>*@

<div id="banner" class="clear" style="width: 982px; margin: 0 auto">
   @* <ul id="menu">
		<li id="logo">
			<a href="/">
			<img alt="logo-thegioivere" src="/Content/Images/Site/logo.jpg">
			</a>
		</li>
        <li id="flightsearch" class="m-item"><a href="@seo.Domain/news/travel">Tìm chuy&#234;́n bay</a></li>
        <li id="bigsale" class="m-item"><a href="@seo.Domain/news/bigsale">Tin khuy&#234;́n mãi</a></li>
        <li id="ourwork" class="m-item"><a href="@seo.Domain/news/ourwork">Nghi&#234;̣p vụ</a></li>
        <li id="blog" class="m-item"><a href="http://thegioivere.blogspot.com/">Đi&#234;̃n đàn</a></li>
        <li id="contacts" class="m-item"><a href="@seo.Domain/about">Li&#234;n h&#234;̣ </a></li>
    </ul>
    <div style="height: 340px">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
            width="982" height="247">
            <param name="/Content/Images/Site/banner.swf">
            <param name="quality" value="high">
            <param name="wmode" value="transparent" />
            <param name="menu" value="false">
            <embed src="/Content/Images/Site/banner.swf" quality="high" wmode="transparent" menu="false"
                pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
                width="982" height="247"></embed>
        </object>
    </div>*@
    @{Html.Telerik().Menu()
        .Name("Menu")
        .Items(menu =>
        {
            menu.Add()
                .Text(lang.NEWS)
                //.ImageUrl("~/Content/Common/Icons/Suites/mvc.png")
                .Items(submenu =>
                {
                    submenu.Add().Text(lang.SYSTEMNEWS)
                    .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListNews", "Admin");
                        });
                    submenu.Add().Text(lang.BIGSALE)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateSaleNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListSaleNews", "Admin");
                        });
                    submenu.Add().Text(lang.QUESTION)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateQuestionNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListQuestionNews", "Admin");
                        });
                    submenu.Add().Text(lang.ABOUTUS)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateAboutUsNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListAboutUsNews", "Admin");
                        });
                    submenu.Add().Text(lang.MANGPURCHASE)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreatePurchaseNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListPurchaseNews", "Admin");
                        });
                    submenu.Add().Text(lang.INTERNATIONALTICKET)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateInterTicketNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListInterTicketNews", "Admin");
                        });
                    submenu.Add().Text(lang.DOMESTICTICKET)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateDomesticTicketNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListDomesticTicketNews", "Admin");
                        });
                    submenu.Add().Text(lang.FIRMTICKET)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateFirmTicketNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListFirmTicketNews", "Admin");
                        });
                    submenu.Add().Text(lang.TYPETICKET)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateTypeTicketNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListTypeTicketNews", "Admin");
                        });
                    submenu.Add().Text(lang.OURWORK)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateOurworkNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListOurworkNews", "Admin");
                        });
                    submenu.Add().Text(lang.RESALE)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateResaleNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListResaleNews", "Admin");
                        });
                    submenu.Add().Text(lang.TRAVEL)
                        .Items(sub =>
                        {
                            sub.Add().Text(lang.ADD).Action("CreateTravelNews", "Admin");
                            sub.Add().Text(lang.LIST).Action("ListReTravelNews", "Admin");
                        });
                    
                });
            menu.Add()
                 .Text(lang.COMMENT + "(" + (string)ViewBag.CommentCount + ")")
                 .Items(item =>
                 {
                     item.Add().Text(lang.NEWCOMMENT).Action("ListNewComment", "Admin");
                     item.Add().Text(lang.LIST).Action("ListComment", "Admin");
                 });
            menu.Add()
                 .Text(lang.BOOKING)
                 .Items(item =>
                 {
                     item.Add().Text(lang.BOOKING).Action("Booking", "Admin");
                     item.Add().Text(lang.ORDERTICKET).Action("OrderTicket", "Admin");
                 });
            menu.Add()
                 .Text(lang.SETTING)
                 .Items(item =>
                 {
                     item.Add().Text(lang.SETTING).Action("Setting", "Admin");
                 });
            menu.Add()
                 .Text(lang.EMAIL)
                 .Items(item =>
                 {
                     item.Add().Text(lang.EMAIL).Action("Email", "Admin");
                 });
        })
        .Render();
    }
</div>
